package hacker_rank.feb14;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class RightRotation {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String line = br.readLine();
		String[] ar = line.split(" ");
		int N = Integer.parseInt(ar[0]);
		int K = Integer.parseInt(ar[1]);
		int Q = Integer.parseInt(ar[2]);

		ar = br.readLine().split(" ");
		int[] A = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = Integer.parseInt(ar[i]);
		}

		K = K % N;
		
		int si = (N - 1) - (K -1);
		
		
		for (int i = 0; i < Q; i++) {
			int q = Integer.parseInt(br.readLine());
			System.out.println(A[ (si + q) % N]);

		}

	}

}
